﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StateGrid.OperationLog
{
    /// <summary>
    /// 日志的查询条件构造类
    /// </summary>
    public class LogQueryCondition
    {

        public LogQueryCondition()
        {
            //初始设置两个不可能达到的界限值
            //必须设置，否则默认的0000/01/01会导致sql语句出错
            startDate = DateTime.Now.AddYears(-30);
            endDate = DateTime.Now.AddYears(1000);

        }

        /// <summary>
        /// 操作员名
        /// </summary>
        public String userName
        {
            get;
            set;
        }

        /// <summary>
        /// 文库
        /// </summary>
        public String wk
        {
            get;
            set;
        }
        /// <summary>
        /// 取值选择：ADD/EDIT/DELETE
        /// </summary>
        public String opType
        {
            get;
            set;
        }

        /// <summary>
        /// 起始时间
        /// </summary>
        public DateTime? startDate
        {
            get;
            set;
        }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? endDate
        {
            get;
            set;
        }

        /// <summary>
        /// 开始位置
        /// </summary>
        public int start
        {
            get;
            set;
        }

        /// <summary>
        /// 结束位置
        /// </summary>
        public int end
        {
            get;
            set;
        }
    }
}
